package top.readhub.wopei.client.loader;

import top.readhub.wopei.client.zk.ZKWatcher;
import top.readhub.wopei.common.constants.Constants;
import top.readhub.wopei.common.exception.WoPeiException;
import top.readhub.wopei.common.utils.ZKPathUtil;

/**
 * Created by daervin on 2021/6/10
 */
public class ZKLoader implements ILoader {
    @Override
    public String getSetting(String keyword) throws WoPeiException {
        ZKWatcher.initZKClient();
        return ZKWatcher.getData(ZKPathUtil.path(keyword, Constants.SUB_DEFAULT_PATH));
    }
}
